headerbar: don't use GTK_PACK_* as indices into array
authorRay Strode <rstrode@redhat.com>
Thu, 23 Jun 2016 13:16:40 +0000 (09:16 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 23 Jun 2016 18:32:33 +0000 (14:32 -0400)
commit78eccd0db9e79fac187d4fd82f1ce8b5b7e3a2a2
treec55d323666a021644d5487b16e4ddec67b2b1fe8
parent01eda209e19f02b507a8ddd73ae3b2bf74e7d5c2
headerbar: don't use GTK_PACK_* as indices into array

The size allocation code maintains an array of two elements,
to track the allocation of children packed into the two sides
of a header bar. Sometimes this array is indexed with 0 and 1,
and sometimes its indexed with GTK_PACK_START and GTK_PACK_END.
The latter happen to have the values 0 and 1, respectively, but
that's not really obvious.

For clarity, this commit changes the code to index those arrays
consistently, sticking to 0 and 1 across the board.
gtk/gtkheaderbar.c